package com.wbk.lotterysystemgateway;

import com.wbk.lotterysystemgateway.filter.WebGatewayFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

@EnableDiscoveryClient
@SpringBootApplication
public class LotterySystemGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(LotterySystemGatewayApplication.class, args);
    }

    @Bean
    public WebGatewayFilter webGatewayFilter(){
        return new WebGatewayFilter();
    }
}
